<?php  defined("C5_EXECUTE") or die(_("Access Denied.")); ?>
<div id="hCard<?php echo intval($bID)?>" class="vcard vcardOrganization">
<div class="hCardContent">
<h3 class="fn org"><?php echo $org; ?></h3>
<?php if (!empty($title)) {?>
<p class="title"><?php echo $title; ?></p>
<?php } ?>

<dl class="properties">
	<?php if (!empty($streetAddress) || !empty($extendedAddress) || !empty($locality) || !empty($region)) { ?>
		<dt><?php echo t("address") ?></dt>
		<dd class="adr">
			<span class="type"><?php echo $controller->getAddressTypeName($addressType); ?></span>
			<span class="street-address"><?php echo $streetAddress; ?></span><br />
			<span class="extended-address"><?php echo $extendedAddress; ?></span><br />
			<span class="locality"><?php echo $locality; ?></span><br />
			<span class="region"><?php echo $region; ?></span><br />
			<span class="postal-code"><?php echo $postalCode; ?></span><br />
			<span class="country-name"><?php echo $countryName; ?>
		</dd>
	<?php }  ?>
	<?php if (!empty($tel1Value)) { ?>
		<dt><?php echo t("telphone1"); ?></dt>
		<dd class="tel"><span class="type"><?php echo $controller->getTelphoneTypeName($tel1Type); ?></span><span class="value"><?php echo $tel1Value; ?></span></dd>
	<?php }  ?>

	<?php if (!empty($tel2Value)) { ?>
		<dt><?php echo t("telphone2"); ?></dt>
		<dd class="tel"><span class="type"><?php echo $controller->getTelphoneTypeName($tel2Type);  ?></span><span class="value"><?php echo $tel2Value; ?></span></dd>
	<?php }  ?>

	<?php if (!empty($email)) { ?>
		<dt><?php echo t("email"); ?></dt>
		<dd><a class="email" href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a></dd>
	<?php }  ?>

	<?php if (!empty($url)) { ?>
		<dt><?php echo t("url"); ?></dt>
		<dd><a class="url" href="<?php echo $url; ?>"><?php echo $url; ?></a></dd>
	<?php }  ?>
</dl>
</div>
</div>